
<form nz-form #validateForm="ngForm" (ngSubmit)="submitForm()" nzLayout="horizontal" autocomplete="off">
    <!-- 模态框头部 -->
    <div class="modal-header">
        <div class="modal-title">
            <i class="iconfont icon-medicine-box mr-sm"></i>
            <span *ngIf="entity.id">{{l('Edit')}}</span>
            <span *ngIf="!entity.id">{{l('Create')}}</span>
        </div>
    </div>
    <!-- 模态框内容 -->
    <fieldset>
        <!-- 提示信息 -->
        <!-- <nz-alert nzType="info" nzCloseable [nzShowIcon]="true" nzMessage="l('我想提示点什么内容给你说')"></nz-alert> -->
                   <!-- StockId : StockId 的控件范围=Start= -->
                <nz-form-item nz-row>
                        <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="stockId">  
                            {{l('StockId')}}
                            </nz-form-label>
                    <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                        <!--  控件位置 -->
                                <nz-input-number
                                    name="stockId" #stockId="ngModel"
                                    [(ngModel)]="entity.stockId"
                                    [nzMin]="0"
                                    [nzMax]="1000000"
                                    [nzStep]="1"
                                ></nz-input-number>


                    </nz-form-control>
             
                </nz-form-item>
                <!--StockId : StockId 的控件范围结束=END= -->
                   <!-- StudentId : StudentId 的控件范围=Start= -->
                <nz-form-item nz-row>
                        <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="studentId">  
                            {{l('StudentId')}}
                            </nz-form-label>
                    <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                        <!--  控件位置 -->
                                <nz-input-number
                                    name="studentId" #studentId="ngModel"
                                    [(ngModel)]="entity.studentId"
                                    [nzMin]="0"
                                    [nzMax]="1000000"
                                    [nzStep]="1"
                                ></nz-input-number>


                    </nz-form-control>
             
                </nz-form-item>
                <!--StudentId : StudentId 的控件范围结束=END= -->
                   <!-- TotalScore : TotalScore 的控件范围=Start= -->
                <nz-form-item nz-row>
                        <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="totalScore">  
                            {{l('TotalScore')}}
                            </nz-form-label>
                    <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                        <!--  控件位置 -->
                                <input nz-input name="totalScore" #totalScore="ngModel"
                                       [(ngModel)]="entity.totalScore"
                                      [placeholder]="l('StockSubmitTotalScoreInputDesc')" >


                    </nz-form-control>
             
                </nz-form-item>
                <!--TotalScore : TotalScore 的控件范围结束=END= -->
                   <!-- StockScore : StockScore 的控件范围=Start= -->
                <nz-form-item nz-row>
                        <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="stockScore">  
                            {{l('StockScore')}}
                            </nz-form-label>
                    <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                        <!--  控件位置 -->
                                <input nz-input name="stockScore" #stockScore="ngModel"
                                       [(ngModel)]="entity.stockScore"
                                      [placeholder]="l('StockSubmitStockScoreInputDesc')" >


                    </nz-form-control>
             
                </nz-form-item>
                <!--StockScore : StockScore 的控件范围结束=END= -->
                   <!-- QuestionCount : QuestionCount 的控件范围=Start= -->
                <nz-form-item nz-row>
                        <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="questionCount">  
                            {{l('QuestionCount')}}
                            </nz-form-label>
                    <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                        <!--  控件位置 -->
                                <input nz-input name="questionCount" #questionCount="ngModel"
                                       [(ngModel)]="entity.questionCount"
                                      [placeholder]="l('StockSubmitQuestionCountInputDesc')" >


                    </nz-form-control>
             
                </nz-form-item>
                <!--QuestionCount : QuestionCount 的控件范围结束=END= -->
                   <!-- AnswerRightCount : AnswerRightCount 的控件范围=Start= -->
                <nz-form-item nz-row>
                        <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="answerRightCount">  
                            {{l('AnswerRightCount')}}
                            </nz-form-label>
                    <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                        <!--  控件位置 -->
                                <input nz-input name="answerRightCount" #answerRightCount="ngModel"
                                       [(ngModel)]="entity.answerRightCount"
                                      [placeholder]="l('StockSubmitAnswerRightCountInputDesc')" >


                    </nz-form-control>
             
                </nz-form-item>
                <!--AnswerRightCount : AnswerRightCount 的控件范围结束=END= -->
                   <!-- UseTime : UseTime 的控件范围=Start= -->
                <nz-form-item nz-row>
                        <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="useTime">  
                            {{l('UseTime')}}
                            </nz-form-label>
                    <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                        <!--  控件位置 -->
                                <input nz-input name="useTime" #useTime="ngModel"
                                       [(ngModel)]="entity.useTime"
                                      [placeholder]="l('StockSubmitUseTimeInputDesc')" >


                    </nz-form-control>
             
                </nz-form-item>
                <!--UseTime : UseTime 的控件范围结束=END= -->

    </fieldset>
    <!-- 模态框底部 -->
    <div class="modal-footer">
        <button nz-button [nzType]="'default'" type="button" (click)="close()" [disabled]="saving">
            <i class="iconfont icon-close-circle"></i> {{l("Cancel")}}
        </button>
        <button nz-button [nzType]="'primary'" type="submit" [disabled]="!validateForm.form.valid|| saving" [nzLoading]="saving">
            <i class="iconfont icon-save" *ngIf="!saving"></i> {{l("Save")}}
        </button>
    </div>
</form>